package com.example.safeassistan.risk.model;

import java.util.List;

public class WarningListModel {


    /**
     * success : true
     * message : 操作成功！
     * code : 0
     * result : {"records":[{"riskName":"测","reason":null,"createTime":"2021-06-01 11:40:35","name":null,"taskName":null,"departName":"测试工厂"},{"riskName":"测","reason":null,"createTime":"2021-06-01 14:46:13","name":null,"taskName":null,"departName":"测试工厂"},{"riskName":"测","reason":null,"createTime":"2021-06-01 14:46:13","name":null,"taskName":null,"departName":"测试工厂"},{"riskName":"测","reason":null,"createTime":"2021-06-02 09:34:49","name":null,"taskName":null,"departName":"哈哈哈"},{"riskName":"测","reason":null,"createTime":"2021-06-02 10:06:19","name":null,"taskName":null,"departName":"哈哈哈"},{"riskName":"作业活动222","reason":null,"createTime":"2021-06-02 17:37:54","name":null,"taskName":null,"departName":"测试工厂"},{"riskName":"作业活动222","reason":null,"createTime":"2021-06-04 11:38:53","name":null,"taskName":null,"departName":"测试工厂"},{"riskName":"作业活动222","reason":null,"createTime":"2021-06-04 11:45:43","name":null,"taskName":null,"departName":"测试工厂"},{"riskName":"作业活动222","reason":null,"createTime":"2021-06-04 14:47:10","name":null,"taskName":null,"departName":"测试工厂"}],"total":9,"size":10,"current":1,"orders":[],"optimizeCountSql":true,"hitCount":false,"countId":null,"maxLimit":null,"searchCount":true,"pages":1}
     * timestamp : 1623226910453
     */

    private Boolean success;
    private String message;
    private Integer code;
    private ResultDTO result;
    private Long timestamp;

    public Boolean isSuccess() {
        return success;
    }

    public void setSuccess(Boolean success) {
        this.success = success;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public ResultDTO getResult() {
        return result;
    }

    public void setResult(ResultDTO result) {
        this.result = result;
    }

    public Long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(Long timestamp) {
        this.timestamp = timestamp;
    }

    public static class ResultDTO {
        /**
         * records : [{"riskName":"测","reason":null,"createTime":"2021-06-01 11:40:35","name":null,"taskName":null,"departName":"测试工厂"},{"riskName":"测","reason":null,"createTime":"2021-06-01 14:46:13","name":null,"taskName":null,"departName":"测试工厂"},{"riskName":"测","reason":null,"createTime":"2021-06-01 14:46:13","name":null,"taskName":null,"departName":"测试工厂"},{"riskName":"测","reason":null,"createTime":"2021-06-02 09:34:49","name":null,"taskName":null,"departName":"哈哈哈"},{"riskName":"测","reason":null,"createTime":"2021-06-02 10:06:19","name":null,"taskName":null,"departName":"哈哈哈"},{"riskName":"作业活动222","reason":null,"createTime":"2021-06-02 17:37:54","name":null,"taskName":null,"departName":"测试工厂"},{"riskName":"作业活动222","reason":null,"createTime":"2021-06-04 11:38:53","name":null,"taskName":null,"departName":"测试工厂"},{"riskName":"作业活动222","reason":null,"createTime":"2021-06-04 11:45:43","name":null,"taskName":null,"departName":"测试工厂"},{"riskName":"作业活动222","reason":null,"createTime":"2021-06-04 14:47:10","name":null,"taskName":null,"departName":"测试工厂"}]
         * total : 9
         * size : 10
         * current : 1
         * orders : []
         * optimizeCountSql : true
         * hitCount : false
         * countId : null
         * maxLimit : null
         * searchCount : true
         * pages : 1
         */

        private Integer total;
        private Integer size;
        private Integer current;
        private Boolean optimizeCountSql;
        private Boolean hitCount;
        private Object countId;
        private Object maxLimit;
        private Boolean searchCount;
        private Integer pages;
        private List<RecordsDTO> records;
        private List<?> orders;

        public Integer getTotal() {
            return total;
        }

        public void setTotal(Integer total) {
            this.total = total;
        }

        public Integer getSize() {
            return size;
        }

        public void setSize(Integer size) {
            this.size = size;
        }

        public Integer getCurrent() {
            return current;
        }

        public void setCurrent(Integer current) {
            this.current = current;
        }

        public Boolean isOptimizeCountSql() {
            return optimizeCountSql;
        }

        public void setOptimizeCountSql(Boolean optimizeCountSql) {
            this.optimizeCountSql = optimizeCountSql;
        }

        public Boolean isHitCount() {
            return hitCount;
        }

        public void setHitCount(Boolean hitCount) {
            this.hitCount = hitCount;
        }

        public Object getCountId() {
            return countId;
        }

        public void setCountId(Object countId) {
            this.countId = countId;
        }

        public Object getMaxLimit() {
            return maxLimit;
        }

        public void setMaxLimit(Object maxLimit) {
            this.maxLimit = maxLimit;
        }

        public Boolean isSearchCount() {
            return searchCount;
        }

        public void setSearchCount(Boolean searchCount) {
            this.searchCount = searchCount;
        }

        public Integer getPages() {
            return pages;
        }

        public void setPages(Integer pages) {
            this.pages = pages;
        }

        public List<RecordsDTO> getRecords() {
            return records;
        }

        public void setRecords(List<RecordsDTO> records) {
            this.records = records;
        }

        public List<?> getOrders() {
            return orders;
        }

        public void setOrders(List<?> orders) {
            this.orders = orders;
        }

        public static class RecordsDTO {
            /**
             * riskName : 测
             * reason : null
             * createTime : 2021-06-01 11:40:35
             * name : null
             * taskName : null
             * departName : 测试工厂
             */

            private String riskName;
            private String reason;
            private String createTime;
            private String name;
            private String taskName;
            private String departName;
            private Integer riskLevel;


            public Integer getRiskLevel() {
                return riskLevel;
            }

            public void setRiskLevel(Integer riskLevel) {
                this.riskLevel = riskLevel;
            }

            public String getRiskName() {
                return riskName;
            }

            public void setRiskName(String riskName) {
                this.riskName = riskName;
            }

            public String getReason() {
                return reason;
            }

            public void setReason(String reason) {
                this.reason = reason;
            }

            public String getCreateTime() {
                return createTime;
            }

            public void setCreateTime(String createTime) {
                this.createTime = createTime;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getTaskName() {
                return taskName;
            }

            public void setTaskName(String taskName) {
                this.taskName = taskName;
            }

            public String getDepartName() {
                return departName;
            }

            public void setDepartName(String departName) {
                this.departName = departName;
            }
        }
    }
}
